package com.gsd.cloud.controller;

import cn.hutool.core.util.IdUtil;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName PayMicrometerController
 * @Description TODO
 * @Author shoudu guo
 * @Date 2024/3/27 10:24
 * @Version 1.0
 */
@RestController
public class PayMicrometerController {
    /**
     * Micrometer(Sleuth)进行链路监控的例子
     * @param id
     * @return
     */
    @GetMapping(value = "/pay/micrometer/{id}")
    public String myMicrometer(@PathVariable("id") Integer id) {
        return "Hello, 欢迎到来myMicrometer inputId:  "+id+" \t    服务返回:" + IdUtil.simpleUUID();
    }
}

